//
//  Element.h
//  PlantNannyDemo
//
//  Created by Joueu on 14-10-24.
//
//

#ifndef __PlantNannyDemo__Element__
#define __PlantNannyDemo__Element__

#include "cocos2d.h"
#include "cocos-ext.h"

USING_NS_CC;
USING_NS_CC_EXT;

class Element: public ui::Button{
public:
    static Element *createWithItemNameAndNum(int num,const char* itemName = "wl_element@2x.png");
    
    virtual bool initWithItemNameAndNum(int num,const char* itemName);
    
    void updateDate(int addend);
private:
    int m_num;
    Label *m_numLabel;
    Sprite *m_leftItem;
};

#endif /* defined(__PlantNannyDemo__Element__) */
